<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>浮动定位</title>
		<style>
			/* 浮动属性：float:left\none\right */
			/* 清除浮动属性 clear:left\right\both */
			div{
				width: 300px;
				height: 300px;
				border-radius: 50%;
				float: right;
				font-size: 10em;
				text-align: center;
				line-height: 300px;
			}
			#d1{
				background-color: red;
			}
			#d2{
				background-color: antiquewhite;
				clear: both;
			}
			#d3{
				
				background-color: aqua;
				
			}
			#d4{
				background-color: aquamarine;
				
			}
		</style>
	</head>
	<body>
		<!-- 页面排版左右形式：浮动定位：可以让元素变成块元素，飘起来，排在父级左右 -->
		<div id="d1">1</div>
		<div id="d2">2</div>
		<div id="d3">3</div>
		<div id="d4">4</div>
	</body>
</html>